package com.news.news.dao;

import com.news.news.modle.Comment;
import com.news.news.modle.Link;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * Created by 罗铠威 on 2023/8/29 16:22
 * type:
 */
//@Mapper
public interface CommentDao {


    ArrayList<Comment> commentList(Comment comment);//查询新闻列表


    void saveComment(Comment comment);//新增链接
    void UpdateCommentState(Comment comment);//修改状态



    Comment findCommentById(Integer id);

    void updateComment(Comment comment);

    void deleteCommentById(Integer id);

    ArrayList<Comment> GetCommentList(Integer id);

    void deleteUserComment(@Param("userid") Integer userid,@Param("newsid") int newsid,@Param("commentId") int commentId);


    //
    //ArrayList<NewsType> findNewsTypeList();
    //
    //void deleteNewstypeRole(Integer id);
    //
    //void addNewstypeRole(@Param("newsid") Integer newsid,@Param("newstypeid") Integer newstypeid);

}

